#ifndef TASK_STRUCT_H
#define TASK_STRUCT_H

#include "thread.h"

#define match_sizetype      unsigned int

// Task control block for peer task
typedef struct{
    unsigned int taskID;
    match_sizetype * stackTop, *stackEnd;
    unsigned char taskname[16];
    match_sizetype *task_stack;


    unsigned long runtime_counter;
    unsigned long assigned_time;
    match_sizetype *current_list;

    unsigned char pority;

}TCB;


#endif
